package com.linyf.design.Decorator;

/**
 * @Author: linyf
 * @Description: TODO
 * @DateTime: 2023/4/26 10:57
 **/
public abstract class Decorator extends Component{

    Component component;

    public Decorator(Component component) {
        this.component = component;
    }

    @Override
    public void operate() {
        this.component.operate();

    }
}
